package com.ruoyi.system.mapper;

import com.ruoyi.common.core.domain.entity.ProviderSchedule;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDate;
import java.util.Date;
import java.util.List;

@Mapper
public interface ProviderScheduleMapper {

    List<ProviderSchedule> selectProviderScheduleList(ProviderSchedule schedule);

    ProviderSchedule selectProviderScheduleById(Long id);

    int insertProviderSchedule(ProviderSchedule schedule);

    int updateProviderSchedule(ProviderSchedule schedule);

    int deleteProviderScheduleById(Long id);

    // 添加根据日期查询的方法
    List<ProviderSchedule> selectProviderScheduleByDate(Long providerId, Date date);

    int deleteProviderScheduleByIds(Long[] ids);

}